From 99b5af11e4047181626f44987a2716d694b6babe Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 8 Feb 2011 13:09:52 -0500 Subject: [PATCH] Add warnings about environment variables These variables all get read by GTK 2.x as well, which makes them dangerous at best. --- docs/reference/gtk/running.sgml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/docs/reference/gtk/running.sgml b/docs/reference/gtk/running.sgml index 6a4911a2e5..b2b894601b 100644 --- a/docs/reference/gtk/running.sgml +++ b/docs/reference/gtk/running.sgml @@ -199,6 +199,10 @@ additional environment variables. A list of modules to load. Note that GTK+ also allows to specify modules to load via a commandline option () and with the gtk-modules setting. + + Note that this environment variable is read by GTK+ 2.x too, + which may not have the same set of modules available for loading. + @@ -211,7 +215,7 @@ additional environment variables. modules, file system backends and print backends. If the path to the dynamically loaded object is given as an absolute path name, then GTK+ loads it directly. - Otherwise, GTK+ goes in turn through the directories in GTK_PATH, + Otherwise, GTK+ goes in turn through the directories in GTK_PATH, followed by the directory .gtk-3.0 in the user's home directory, followed by the system default directory, which is libdir/gtk-3.0/modules. @@ -241,6 +245,12 @@ additional environment variables. The components of GTK_PATH are separated by the ':' character on Linux and Unix, and the ';' character on Windows. + + Note that this environment variable is read by GTK+ 2.x too, which + makes it unsuitable for setting it system-wide (or session-wide), + since doing so will cause either GTK+ 2.x applications or GTK+ 3 + applications to see incompatible modules. + @@ -268,6 +278,12 @@ additional environment variables. The immodules.cache file is generated by the gtk-query-immodules-3.0 utility. + + Note that this environment variable is read by GTK+ 2.x too, which + makes it unsuitable for setting it system-wide (or session-wide), + since doing so will cause either GTK+ 2.x applications or GTK+ 3 + applications to see the wrong list of IM modules. + -- 2.30.2